package com.wondersgroup.restbase.dto;

/**
 * 将服务端数据返回给客户端的包裹对象
 * @author wondersgroup
 *
 * @param <T>
 */
public class RestResult<T> {

	/**返回标志*/
    private int returnTag;
    /**返回信息*/
    private String returnMsg;
    /**返回数据*/
    private T returnData;
    
    public RestResult(T returnData){
    	this.returnTag=0;
    	this.returnMsg="OK!";
    	this.returnData = returnData;
    }
    public RestResult(int returnTag,String returnMsg){
    	this.returnTag=returnTag;
    	this.returnMsg=returnMsg;
    }
	public int getReturnTag() {
		return returnTag;
	}
	public void setReturnTag(int returnTag) {
		this.returnTag = returnTag;
	}
	public String getReturnMsg() {
		return returnMsg;
	}
	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}
	public T getReturnData() {
		return returnData;
	}
	public void setReturnData(T returnData) {
		this.returnData = returnData;
	}

   
}
